/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.scraper.textyard.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;

/**
 * 
 * @author rsvystun
 */
public class Term {

	private int id;

	@SerializedName("Term_Name")
	private String termName;

	private String schoolID;
	
	private String schoolName;

	private List<Department> departments = new ArrayList<Department>();

	public int getId() {
		return id;
	}

	public void setId(final int id) {
		this.id = id;
	}

	public String getTermName() {
		return termName;
	}

	public void setTermName(final String termName) {
		this.termName = termName;
	}

	@Override
	public String toString() {
		return termName;
	}

	public void addDepartment(final Department department) {
		departments.add(department);
	}

	public List<Department> getDepartments() {
		return departments;
	}

	public void setDepartments(final List<Department> departments) {
		this.departments = departments;
	}

	public String getSchoolID() {
		return schoolID;
	}

	public void setSchoolId(final String schId) {
		schoolID = schId;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(final String schoolName) {
		this.schoolName = schoolName;
	}
	
}
